<div id="footer" style="font-size: 12px;">
    <p>Копирование материалов с данного сайта разрешается только с указанием прямой ссылки на источник <br>
        2009 - <?php echo date('Y') ?> | &copy;  <a href="/kontakti/contacts">Михаил Губарев</a> | Сайт-партнер: <a href="http://kin-search.ru/">Поиск родственников, пропавших</a></p>

</div>
</div>
<?php
$message = Application_Model_MessageBox::getMessages();
Application_Model_MessageBox::clearMessages();

if (is_array($message)) {
    $strError = '';
    foreach ($message as $er) {
        $strError .= $this->trans->_($er) . '<br />';
    }
    if ($strError) {
        ?>
        <script type="text/javascript">

            $(document).ready(function() {
                $('#dialog').html("<?php echo $strError ?>");
                $('#dialog').dialog({
                    title: 'Information',
                    modal: true,
                    width: 300,
                    buttons: {
                        "OK": function() {
                            $('#dialog').dialog('close');
                        }
                    }
                });
            });
        </script>
        <?php
    }
}
?>
<div style="display: none;">
    <div id="dialog" title="Information"></div>
    <div id="dialog1" title="Information"></div>
</div>
<br />
<?php if ($_SERVER['REMOTE_ADDR'] != "127.0.0.1") { ?>
    <div id="share-block">
        <script type="text/javascript">(function() {
                if (window.pluso)
                    if (typeof window.pluso.start == "function")
                        return;
                if (window.ifpluso == undefined) {
                    window.ifpluso = 1;
                    var d = document, s = d.createElement('script'), g = 'getElementsByTagName';
                    s.type = 'text/javascript';
                    s.charset = 'UTF-8';
                    s.async = true;
                    s.src = ('https:' == window.location.protocol ? 'https' : 'http') + '://share.pluso.ru/pluso-like.js';
                    var h = d[g]('body')[0];
                    h.appendChild(s);
                }
                })();</script>
        <div class="pluso" data-background="#ebebeb" data-options="medium,square,line,vertical,nocounter,theme=06" data-services="vkontakte,odnoklassniki,facebook,twitter,google,moimir,email,bookmark,print"></div>
    </div>
<?php } ?>
<div id="toTop" title="Вверх" class="go-up" style="display: block;">⇧</div>
</body>
</html>
<link type="text/css" rel="stylesheet" href="/js/syntaxhighlighter/styles/shCore.css"/>
<link type="text/css" rel="stylesheet" href="/js/syntaxhighlighter/styles/shThemeDefault.css"/>

<script type="text/javascript" src="/js/syntaxhighlighter/scripts/shCore.js"></script>
<script type="text/javascript" src="/js/syntaxhighlighter/scripts/shBrushPhp.js"></script>
<script type="text/javascript" src="/js/syntaxhighlighter/scripts/shBrushJScript.js"></script>


<script type="text/javascript">
    SyntaxHighlighter.defaults['toolbar'] = false;
    SyntaxHighlighter.all();
</script>
<script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-45283738-1']);
    _gaq.push(['_trackPageview']);

    (function() {
        var ga = document.createElement('script');
        ga.type = 'text/javascript';
        ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(ga, s);
    })();
</script>
<script>
    $(function() {
        $.fn.scrollToTop = function() {
            $(this).hide().removeAttr("href");
            if ($(window).scrollTop() != "0") {
                $(this).fadeIn("slow")
            }
            var scrollDiv = $(this);
            $(window).scroll(function() {
                if ($(window).scrollTop() == "0") {
                    $(scrollDiv).fadeOut("slow")
                } else {
                    $(scrollDiv).fadeIn("slow")
                }
            });
            $(this).click(function() {
                $("html, body").animate({scrollTop: 0}, "slow")
            })
        }
    });
    $(function() {
        $("#toTop").scrollToTop();
    });
</script>
